package server.model;

import java.util.ArrayList;
import java.util.List;

public class UserInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUsernameIsNull() {
            addCriterion("UserName is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("UserName is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("UserName =", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("UserName <>", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("UserName >", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("UserName >=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("UserName <", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("UserName <=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("UserName like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("UserName not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("UserName in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("UserName not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("UserName between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("UserName not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNull() {
            addCriterion("PassWord is null");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNotNull() {
            addCriterion("PassWord is not null");
            return (Criteria) this;
        }

        public Criteria andPasswordEqualTo(String value) {
            addCriterion("PassWord =", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotEqualTo(String value) {
            addCriterion("PassWord <>", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThan(String value) {
            addCriterion("PassWord >", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("PassWord >=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThan(String value) {
            addCriterion("PassWord <", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThanOrEqualTo(String value) {
            addCriterion("PassWord <=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLike(String value) {
            addCriterion("PassWord like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotLike(String value) {
            addCriterion("PassWord not like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordIn(List<String> values) {
            addCriterion("PassWord in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotIn(List<String> values) {
            addCriterion("PassWord not in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordBetween(String value1, String value2) {
            addCriterion("PassWord between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotBetween(String value1, String value2) {
            addCriterion("PassWord not between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNull() {
            addCriterion("NickName is null");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNotNull() {
            addCriterion("NickName is not null");
            return (Criteria) this;
        }

        public Criteria andNicknameEqualTo(String value) {
            addCriterion("NickName =", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotEqualTo(String value) {
            addCriterion("NickName <>", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThan(String value) {
            addCriterion("NickName >", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("NickName >=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThan(String value) {
            addCriterion("NickName <", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThanOrEqualTo(String value) {
            addCriterion("NickName <=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLike(String value) {
            addCriterion("NickName like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotLike(String value) {
            addCriterion("NickName not like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameIn(List<String> values) {
            addCriterion("NickName in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotIn(List<String> values) {
            addCriterion("NickName not in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameBetween(String value1, String value2) {
            addCriterion("NickName between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotBetween(String value1, String value2) {
            addCriterion("NickName not between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andQqnumberIsNull() {
            addCriterion("QQNumber is null");
            return (Criteria) this;
        }

        public Criteria andQqnumberIsNotNull() {
            addCriterion("QQNumber is not null");
            return (Criteria) this;
        }

        public Criteria andQqnumberEqualTo(Integer value) {
            addCriterion("QQNumber =", value, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberNotEqualTo(Integer value) {
            addCriterion("QQNumber <>", value, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberGreaterThan(Integer value) {
            addCriterion("QQNumber >", value, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("QQNumber >=", value, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberLessThan(Integer value) {
            addCriterion("QQNumber <", value, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberLessThanOrEqualTo(Integer value) {
            addCriterion("QQNumber <=", value, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberIn(List<Integer> values) {
            addCriterion("QQNumber in", values, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberNotIn(List<Integer> values) {
            addCriterion("QQNumber not in", values, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberBetween(Integer value1, Integer value2) {
            addCriterion("QQNumber between", value1, value2, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andQqnumberNotBetween(Integer value1, Integer value2) {
            addCriterion("QQNumber not between", value1, value2, "qqnumber");
            return (Criteria) this;
        }

        public Criteria andReferralIsNull() {
            addCriterion("Referral is null");
            return (Criteria) this;
        }

        public Criteria andReferralIsNotNull() {
            addCriterion("Referral is not null");
            return (Criteria) this;
        }

        public Criteria andReferralEqualTo(String value) {
            addCriterion("Referral =", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralNotEqualTo(String value) {
            addCriterion("Referral <>", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralGreaterThan(String value) {
            addCriterion("Referral >", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralGreaterThanOrEqualTo(String value) {
            addCriterion("Referral >=", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralLessThan(String value) {
            addCriterion("Referral <", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralLessThanOrEqualTo(String value) {
            addCriterion("Referral <=", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralLike(String value) {
            addCriterion("Referral like", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralNotLike(String value) {
            addCriterion("Referral not like", value, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralIn(List<String> values) {
            addCriterion("Referral in", values, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralNotIn(List<String> values) {
            addCriterion("Referral not in", values, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralBetween(String value1, String value2) {
            addCriterion("Referral between", value1, value2, "referral");
            return (Criteria) this;
        }

        public Criteria andReferralNotBetween(String value1, String value2) {
            addCriterion("Referral not between", value1, value2, "referral");
            return (Criteria) this;
        }

        public Criteria andRedmailIsNull() {
            addCriterion("RedMail is null");
            return (Criteria) this;
        }

        public Criteria andRedmailIsNotNull() {
            addCriterion("RedMail is not null");
            return (Criteria) this;
        }

        public Criteria andRedmailEqualTo(String value) {
            addCriterion("RedMail =", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailNotEqualTo(String value) {
            addCriterion("RedMail <>", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailGreaterThan(String value) {
            addCriterion("RedMail >", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailGreaterThanOrEqualTo(String value) {
            addCriterion("RedMail >=", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailLessThan(String value) {
            addCriterion("RedMail <", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailLessThanOrEqualTo(String value) {
            addCriterion("RedMail <=", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailLike(String value) {
            addCriterion("RedMail like", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailNotLike(String value) {
            addCriterion("RedMail not like", value, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailIn(List<String> values) {
            addCriterion("RedMail in", values, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailNotIn(List<String> values) {
            addCriterion("RedMail not in", values, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailBetween(String value1, String value2) {
            addCriterion("RedMail between", value1, value2, "redmail");
            return (Criteria) this;
        }

        public Criteria andRedmailNotBetween(String value1, String value2) {
            addCriterion("RedMail not between", value1, value2, "redmail");
            return (Criteria) this;
        }

        public Criteria andCoinIsNull() {
            addCriterion("Coin is null");
            return (Criteria) this;
        }

        public Criteria andCoinIsNotNull() {
            addCriterion("Coin is not null");
            return (Criteria) this;
        }

        public Criteria andCoinEqualTo(Integer value) {
            addCriterion("Coin =", value, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinNotEqualTo(Integer value) {
            addCriterion("Coin <>", value, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinGreaterThan(Integer value) {
            addCriterion("Coin >", value, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinGreaterThanOrEqualTo(Integer value) {
            addCriterion("Coin >=", value, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinLessThan(Integer value) {
            addCriterion("Coin <", value, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinLessThanOrEqualTo(Integer value) {
            addCriterion("Coin <=", value, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinIn(List<Integer> values) {
            addCriterion("Coin in", values, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinNotIn(List<Integer> values) {
            addCriterion("Coin not in", values, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinBetween(Integer value1, Integer value2) {
            addCriterion("Coin between", value1, value2, "coin");
            return (Criteria) this;
        }

        public Criteria andCoinNotBetween(Integer value1, Integer value2) {
            addCriterion("Coin not between", value1, value2, "coin");
            return (Criteria) this;
        }

        public Criteria andHeadiconIsNull() {
            addCriterion("HeadIcon is null");
            return (Criteria) this;
        }

        public Criteria andHeadiconIsNotNull() {
            addCriterion("HeadIcon is not null");
            return (Criteria) this;
        }

        public Criteria andHeadiconEqualTo(String value) {
            addCriterion("HeadIcon =", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconNotEqualTo(String value) {
            addCriterion("HeadIcon <>", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconGreaterThan(String value) {
            addCriterion("HeadIcon >", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconGreaterThanOrEqualTo(String value) {
            addCriterion("HeadIcon >=", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconLessThan(String value) {
            addCriterion("HeadIcon <", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconLessThanOrEqualTo(String value) {
            addCriterion("HeadIcon <=", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconLike(String value) {
            addCriterion("HeadIcon like", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconNotLike(String value) {
            addCriterion("HeadIcon not like", value, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconIn(List<String> values) {
            addCriterion("HeadIcon in", values, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconNotIn(List<String> values) {
            addCriterion("HeadIcon not in", values, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconBetween(String value1, String value2) {
            addCriterion("HeadIcon between", value1, value2, "headicon");
            return (Criteria) this;
        }

        public Criteria andHeadiconNotBetween(String value1, String value2) {
            addCriterion("HeadIcon not between", value1, value2, "headicon");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}